<template>
  <div>
    <div id="jktj" ref="print">
      <jktjTemplate></jktjTemplate>
    </div>
    <div style="text-align:center;">
      <el-button @click="myprint" style="width: 200px;margin-top:10px" type='primary'>打印</el-button>
    </div>
  </div>
</template>
<script>
import jktjTemplate from './jktjTemplate'
export default {
  components: {
    jktjTemplate
  },
  data() {
    return {
      loading: false,
      queryParam: {
        start: 0,
        length: 100,
        jktjid: null, //体检id
        grjbxxid: null //个人基本信息id
      }
    }
  },
  created() {},
  mounted() {},
  methods: {
    myprint() {
      this.$print(this.$refs.print) // 使用
    }
  },
  computed: {}
}
</script>